# models.py
from django.db import models


# class Test(models.Model):
#     name = models.CharField(max_length=30)   #名称
#     price = models.DecimalField(max_digits=5, decimal_places=2)    #价格
#     publish = models.CharField(max_length=32)  #出版社名称
#     pub_data = models.DateField()  #出版时间




class Book(models.Model):
    name = models.CharField(max_length=30)   #名称
    price = models.DecimalField(max_digits=5, decimal_places=2)    #价格
    publish = models.CharField(max_length=32)  #出版社名称
    pub_data = models.DateField()  #出版时间